package com.netty;

import com.netty.constant.ImChannelGroup;
import com.netty.constant.ImChannels;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
public class NettyServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(NettyServerApplication.class, args);
    }

    @Bean
    public ImChannels imChannels() {
        return new ImChannels();
    }

    @Bean
    public ImChannelGroup imChannelGroup() {
        return new ImChannelGroup();
    }
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
